package com.echartsdata.Entityimp;

import com.alibaba.fastjson2.JSONObject;
import com.echartsdata.Mapper.PolicyMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/***
 * 政策解读
 * @author 凉笙
 * 2024-9-25
 */
@Component
public class PolicyMapperimp {
    @Resource
    private PolicyMapper policyMapper;
    public String get_list(){
        System.out.println("看看政策解读数据返回的什么数据"+policyMapper.Getlist());
        //json数据处理
        JSONObject json = new JSONObject();
        json.put("data", policyMapper.Getlist());
        System.out.println("转换后的json数据是"+json.toString());
        return json.toString();
    }
}
